<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('康熙统计列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>

                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('naming:kangxistat:edit')}]];
        var removeFlag = [[${@permission.hasPermi('naming:kangxistat:remove')}]];
        var prefix = ctx + "naming/kangxistat";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                sortName: "date",
        		sortOrder: "desc",
        		pageSize: 30,
                modalName: "康熙统计",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '',
                    visible: false
                },
                {
                    field: 'date',
                    title: '日期'
                },
                {
                    field: 'map',
                    title: '用户',
                    formatter: function(value, row, index) {
                       return value['user']
                    }
                },
                {
                    field: 'map',
                    title: 'ip',
                    formatter: function(value, row, index) {
                       return value['ip']
                    }
                },
                {
                    field: 'map',
                    title: '起名',
                    formatter: function(value, row, index) {
                       return value['naming_click']
                    }
                },
                {
                    field: 'map',
                    title: 'AI起名入口点击',
                    formatter: function(value, row, index) {
                       return value['ai_naming_btn_click']
                    }
                },
                {
                    field: 'map',
                    title: 'AI起名点击起名',
                    formatter: function(value, row, index) {
                       return value['ai_naming_click']
                    }
                },
                {
                    field: 'map',
                    title: '名字评测',
                    formatter: function(value, row, index) {
                       return value['name_eval_click']
                    }
                },
                {
                    field: 'map',
                    title: '八字进入页面',
                    formatter: function(value, row, index) {
                       return value['bazi_click']
                    }
                },
                {
                    field: 'map',
                    title: '八字查询',
                    formatter: function(value, row, index) {
                       return value['bazi_detail_click']
                    }
                },
                {
                    field: 'map',
                    title: '黄历点击',
                    formatter: function(value, row, index) {
                       return value['almanac_click']
                    }
                },
                {
                    field: 'map',
                    title: '起名用字查找',
                    formatter: function(value, row, index) {
                       return value['naming_zi_click']
                    }
                },
                {
                    field: 'map',
                    title: '康熙查字',
                    formatter: function(value, row, index) {
                       return value['zi_click']
                    }
                },
                {
                    field: 'map',
                    title: '康熙繁转简点击',
                    formatter: function(value, row, index) {
                       return value['tran_click']
                    }
                },
                {
                    field: 'map',
                    title: '五行穿衣点击',
                    formatter: function(value, row, index) {
                       return value['color_click']
                    }
                },
                {
                    field: 'map',
                    title: '五行穿衣分享',
                    formatter: function(value, row, index) {
                       return value['color_share_click']
                    }
                },
                {
                    field: 'map',
                    title: '宜忌点击',
                    formatter: function(value, row, index) {
                       return value['yiji_click']
                    }
                },
                {
                    field: 'map',
                    title: '宜忌详情点击',
                    formatter: function(value, row, index) {
                       return value['yiji_detail_click']
                    }
                },
                {
                    field: 'createdTime',
                    title: '统计时间'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>